
<script setup>
import {ref,reactive} from 'vue'
defineExpose({
  title:{
    type:String
  }
})
const emit=defineEmits(["parents"])
const age=ref("uwyey")
const handleClick=()=>{
  age.value="shhdfj"
  emit("parents",100)
  
}
</script>
<template>
    <div>
        {{ age }}
        {{ title }}
        <button @click="handleClick">点击</button>
    </div>
    
</template>
<style scoped>

</style>

